package edu.gym4all.service.enums;

import android.os.Parcel;
import edu.gym4all.service.ExerciseEnum;

public enum CardioEnum implements ExerciseEnum {

	TREDMILL("Tredmill"),

	BIKE("Bike");

	private String name;

	CardioEnum(String name) {
		this.name = name;
	}

	@Override
	public String getExerciseName() {
		return this.name;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.ordinal());
		dest.writeString(this.name);
	}

	public static final Creator<CardioEnum> CREATOR = new Creator<CardioEnum>() {
		@Override
		public CardioEnum createFromParcel(final Parcel source) {
			return CardioEnum.values()[source.readInt()];
		}

		@Override
		public CardioEnum[] newArray(final int size) {
			return new CardioEnum[size];
		}
	};
}
